package org.redis.cluster.interceptor;

import java.util.concurrent.Callable;

import org.redis.cluster.redis.RedisCommand;
import org.redis.cluster.redis.transport.RedisReply;
import org.redis.cluster.transport.session.Session;

public interface InvocationFactory {


	/**
	 * @param session
	 * @param command
	 * @param callback
	 * @return
	 */
	public Invocation getInvocation(Session session,RedisCommand command,Callable<RedisReply> callback);
}